import { Module } from 'vuex';

interface SystemStore {
  /** 主进程初始化完毕 */
  mainLoaded: boolean;
}

export const systemStore: Module<SystemStore, any> = {
  namespaced: true,
  state: {
    mainLoaded: false
  },

  mutations: {
    setMainLoaded(state, loaded: boolean) {
      state.mainLoaded = loaded;
      return state;
    }
  }
};
